package com.feinno.module.security.domain;


import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;

import com.feinno.framework.common.domain.AbstractEntity;

/**
 * 桌面管理 Entity
 *
 * Date: 2013-05-02 15:40:56
 *
 * @author Acooly Code Generator
 */
@Entity
@Table(name = "SYS_PORTALLET")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Portallet extends AbstractEntity {
	private static final long serialVersionUID = 7760426571421698795L;

	/** ID */
	private Long id;
	
	/** 标题 */
	private String title;
	
	/** 高度 */
	private int width = 400;
	
	/** 宽度 */
	private int height = 200;
	
	/** 可否收缩 */
	private int collapsible;
	
	/** 连接地址 */
	private String href;
	
	/** HTML内容 */
	private String content;
	
	
	@Id	
	@GeneratedValue(generator = "sequence")
	@GenericGenerator(name = "sequence", strategy = "sequence", parameters = { @Parameter(name = "sequence", value = "SEQ_SYS_PORTALLET") })
	public Long getId(){
		return this.id;
	}
	
	public void setId(Long id){
		this.id = id;
	}
	public String getTitle(){
		return this.title;
	}
	
	public void setTitle(String title){
		this.title = title;
	}
	public int getWidth(){
		return this.width;
	}
	
	public void setWidth(int width){
		this.width = width;
	}
	public int getHeight(){
		return this.height;
	}
	
	public void setHeight(int height){
		this.height = height;
	}
	public int getCollapsible(){
		return this.collapsible;
	}
	
	public void setCollapsible(int collapsible){
		this.collapsible = collapsible;
	}
	public String getHref(){
		return this.href;
	}
	
	public void setHref(String href){
		this.href = href;
	}
	
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this, ToStringStyle.SHORT_PREFIX_STYLE);
	}

}
